home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMPluginArray.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  6KB  |  197 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMPluginArray.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMPluginArray_h__
  6. #define __gen_nsIDOMPluginArray_h__
  7.  
  8.  
  9. #ifndef __gen_domstubs_h__
  10. #include "domstubs.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIDOMPluginArray */
  19. #define NS_IDOMPLUGINARRAY_IID_STR "f6134680-f28b-11d2-8360-c90899049c3c"
  20.  
  21. #define NS_IDOMPLUGINARRAY_IID \
  22.   {0xf6134680, 0xf28b, 0x11d2, \
  23.     { 0x83, 0x60, 0xc9, 0x08, 0x99, 0x04, 0x9c, 0x3c }}
  24.  
  25. class NS_NO_VTABLE nsIDOMPluginArray : public nsISupports {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMPLUGINARRAY_IID)
  29.  
  30.   /* readonly attribute unsigned long length; */
  31.   NS_IMETHOD GetLength(PRUint32 *aLength) = 0;
  32.  
  33.   /* nsIDOMPlugin item (in unsigned long index); */
  34.   NS_IMETHOD Item(PRUint32 index, nsIDOMPlugin **_retval) = 0;
  35.  
  36.   /* nsIDOMPlugin namedItem (in DOMString name); */
  37.   NS_IMETHOD NamedItem(const nsAString & name, nsIDOMPlugin **_retval) = 0;
  38.  
  39.   /* [noscript] void refresh (in boolean reloadDocuments); */
  40.   NS_IMETHOD Refresh(PRBool reloadDocuments) = 0;
  41.  
  42. };
  43.  
  44. /* Use this macro when declaring classes that implement this interface. */
  45. #define NS_DECL_NSIDOMPLUGINARRAY \
  46.   NS_IMETHOD GetLength(PRUint32 *aLength); \
  47.   NS_IMETHOD Item(PRUint32 index, nsIDOMPlugin **_retval); \
  48.   NS_IMETHOD NamedItem(const nsAString & name, nsIDOMPlugin **_retval); \
  49.   NS_IMETHOD Refresh(PRBool reloadDocuments); 
  50.  
  51. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  52. #define NS_FORWARD_NSIDOMPLUGINARRAY(_to) \
  53.   NS_IMETHOD GetLength(PRUint32 *aLength) { return _to GetLength(aLength); } \
  54.   NS_IMETHOD Item(PRUint32 index, nsIDOMPlugin **_retval) { return _to Item(index, _retval); } \
  55.   NS_IMETHOD NamedItem(const nsAString & name, nsIDOMPlugin **_retval) { return _to NamedItem(name, _retval); } \
  56.   NS_IMETHOD Refresh(PRBool reloadDocuments) { return _to Refresh(reloadDocuments); } 
  57.  
  58. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  59. #define NS_FORWARD_SAFE_NSIDOMPLUGINARRAY(_to) \
  60.   NS_IMETHOD GetLength(PRUint32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
  61.   NS_IMETHOD Item(PRUint32 index, nsIDOMPlugin **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Item(index, _retval); } \
  62.   NS_IMETHOD NamedItem(const nsAString & name, nsIDOMPlugin **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->NamedItem(name, _retval); } \
  63.   NS_IMETHOD Refresh(PRBool reloadDocuments) { return !_to ? NS_ERROR_NULL_POINTER : _to->Refresh(reloadDocuments); } 
  64.  
  65. #if 0
  66. /* Use the code below as a template for the implementation class for this interface. */
  67.  
  68. /* Header file */
  69. class nsDOMPluginArray : public nsIDOMPluginArray
  70. {
  71. public:
  72.   NS_DECL_ISUPPORTS
  73.   NS_DECL_NSIDOMPLUGINARRAY
  74.  
  75.   nsDOMPluginArray();
  76.  
  77. private:
  78.   ~nsDOMPluginArray();
  79.  
  80. protected:
  81.   /* additional members */
  82. };
  83.  
  84. /* Implementation file */
  85. NS_IMPL_ISUPPORTS1(nsDOMPluginArray, nsIDOMPluginArray)
  86.  
  87. nsDOMPluginArray::nsDOMPluginArray()
  88. {
  89.   /* member initializers and constructor code */
  90. }
  91.  
  92. nsDOMPluginArray::~nsDOMPluginArray()
  93. {
  94.   /* destructor code */
  95. }
  96.  
  97. /* readonly attribute unsigned long length; */
  98. NS_IMETHODIMP nsDOMPluginArray::GetLength(PRUint32 *aLength)
  99. {
  100.     return NS_ERROR_NOT_IMPLEMENTED;
  101. }
  102.  
  103. /* nsIDOMPlugin item (in unsigned long index); */
  104. NS_IMETHODIMP nsDOMPluginArray::Item(PRUint32 index, nsIDOMPlugin **_retval)
  105. {
  106.     return NS_ERROR_NOT_IMPLEMENTED;
  107. }
  108.  
  109. /* nsIDOMPlugin namedItem (in DOMString name); */
  110. NS_IMETHODIMP nsDOMPluginArray::NamedItem(const nsAString & name, nsIDOMPlugin **_retval)
  111. {
  112.     return NS_ERROR_NOT_IMPLEMENTED;
  113. }
  114.  
  115. /* [noscript] void refresh (in boolean reloadDocuments); */
  116. NS_IMETHODIMP nsDOMPluginArray::Refresh(PRBool reloadDocuments)
  117. {
  118.     return NS_ERROR_NOT_IMPLEMENTED;
  119. }
  120.  
  121. /* End of implementation class template. */
  122. #endif
  123.  
  124.  
  125. /* starting interface:    nsIDOMJSPluginArray */
  126. #define NS_IDOMJSPLUGINARRAY_IID_STR "ee753352-1dd1-11b2-b18d-b0b7320a28c3"
  127.  
  128. #define NS_IDOMJSPLUGINARRAY_IID \
  129.   {0xee753352, 0x1dd1, 0x11b2, \
  130.     { 0xb1, 0x8d, 0xb0, 0xb7, 0x32, 0x0a, 0x28, 0xc3 }}
  131.  
  132. class NS_NO_VTABLE nsIDOMJSPluginArray : public nsISupports {
  133.  public: 
  134.  
  135.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMJSPLUGINARRAY_IID)
  136.  
  137.   /* void refresh (); */
  138.   NS_IMETHOD Refresh(void) = 0;
  139.  
  140. };
  141.  
  142. /* Use this macro when declaring classes that implement this interface. */
  143. #define NS_DECL_NSIDOMJSPLUGINARRAY \
  144.   NS_IMETHOD Refresh(void); 
  145.  
  146. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  147. #define NS_FORWARD_NSIDOMJSPLUGINARRAY(_to) \
  148.   NS_IMETHOD Refresh(void) { return _to Refresh(); } 
  149.  
  150. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  151. #define NS_FORWARD_SAFE_NSIDOMJSPLUGINARRAY(_to) \
  152.   NS_IMETHOD Refresh(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Refresh(); } 
  153.  
  154. #if 0
  155. /* Use the code below as a template for the implementation class for this interface. */
  156.  
  157. /* Header file */
  158. class nsDOMJSPluginArray : public nsIDOMJSPluginArray
  159. {
  160. public:
  161.   NS_DECL_ISUPPORTS
  162.   NS_DECL_NSIDOMJSPLUGINARRAY
  163.  
  164.   nsDOMJSPluginArray();
  165.  
  166. private:
  167.   ~nsDOMJSPluginArray();
  168.  
  169. protected:
  170.   /* additional members */
  171. };
  172.  
  173. /* Implementation file */
  174. NS_IMPL_ISUPPORTS1(nsDOMJSPluginArray, nsIDOMJSPluginArray)
  175.  
  176. nsDOMJSPluginArray::nsDOMJSPluginArray()
  177. {
  178.   /* member initializers and constructor code */
  179. }
  180.  
  181. nsDOMJSPluginArray::~nsDOMJSPluginArray()
  182. {
  183.   /* destructor code */
  184. }
  185.  
  186. /* void refresh (); */
  187. NS_IMETHODIMP nsDOMJSPluginArray::Refresh()
  188. {
  189.     return NS_ERROR_NOT_IMPLEMENTED;
  190. }
  191.  
  192. /* End of implementation class template. */
  193. #endif
  194.  
  195.  
  196. #endif /* __gen_nsIDOMPluginArray_h__ */
  197.